import EventModel from "@/components-com/workflow/model/event.model";
import {NodeTypeEnum} from "@/components-com/workflow/enums/node.enum";
import NodeConfigModel from "@/components-com/workflow/model/node-config.model";
import ApprovalUserModel from "@/components-com/workflow/model/approval-user.model";

/**
 * 任务信息
 */
export default class TaskModel extends EventModel {
    name: string;
    /**
     * 任务描述
     */
    documentation: string;

    /**
     * 任务分类
     */
    category: NodeTypeEnum;

    delegateExpression: string;

    /*节点配置*/
    config?: NodeConfigModel = new NodeConfigModel();
    /*审批用户配置*/
    userList?: ApprovalUserModel[] = [];

    constructor(id?: string, name?: string) {
        super(id);
        this.name = name;
    }
}
